package com.baofu.paycore.service.facade.model.AccountFreeze;

import com.baofu.paycore.service.facade.model.PayBaseDTO;
import com.baofu.paycore.service.facade.model.withdraw.WithDrawFundDTO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 冻结请求 DTO
 * User:ames wang  Date: 2017/5/11
 */
@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
public class FreezeDTO extends PayBaseDTO implements Serializable {
    private static final long serialVersionUID = -8890304893609073437L;

    /**
     * 账户号
     */
    @NotBlank(message = "资金账户号不能为空")
    @Length(max = 32, message = "资金账户号最大长度不能超过16")
    private String accountNo;

    /**
     * 冻结类型
     */
    @NotBlank(message = "冻结类型不能为空")
    private String freezeType;

}
